import Vue from 'vue'
import App from './App.vue'
import VueRouter from 'vue-router'
import router from './router'
import './assets/style/iconfont.css'
// import 'lib-flexible/flexible'
import axios from 'axios'
// import AMap from 'vue-amap'
import {Button,ButtonGroup,MessageBox,Message,Menu,Submenu,MenuItem,Col,Breadcrumb,BreadcrumbItem,Tabs,TabPane,Table,TableColumn,Pagination,Timeline,TimelineItem,Skeleton,SkeletonItem,Popover,Dialog,Form,FormItem,Input,Option,Select,Dropdown,DropdownMenu,DropdownItem,Badge,Popconfirm,Drawer,Container,Aside,Header,Main} from 'element-ui'

Vue.use(VueRouter);
// Vue.use(AMap);
Vue.prototype.$axios = axios
Vue.component('w-button',Button)
Vue.component('w-menu',Menu)
Vue.component('w-submenu',Submenu)
Vue.component('w-menu-item',MenuItem)
Vue.component('w-col',Col)
Vue.component('w-breadcrumb',Breadcrumb)
Vue.component('w-breadcrumb-item',BreadcrumbItem)
Vue.component('w-tabs',Tabs)
Vue.component('w-tab-pane',TabPane)
Vue.component('w-table',Table)
Vue.component('w-table-column',TableColumn)
Vue.component('w-pagination',Pagination)
Vue.component('w-timeline',Timeline)
Vue.component('w-timeline-item',TimelineItem)
Vue.component('w-skeleton',Skeleton)
Vue.component('w-skeleton-item',SkeletonItem)
Vue.component('w-button-group',ButtonGroup)
Vue.component('w-popover',Popover)
Vue.component('w-dialog',Dialog)
Vue.component('w-form',Form)
Vue.component('w-form-item',FormItem)
Vue.component('w-input',Input)
Vue.component('w-option',Option)
Vue.component('w-select',Select)
Vue.component('w-dropdown',Dropdown)
Vue.component('w-dropdown-menu',DropdownMenu)
Vue.component('w-dropdown-item',DropdownItem)
Vue.component('w-badge',Badge)
Vue.component('w-popconfirm',Popconfirm)
Vue.component('w-drawer',Drawer)
Vue.component('el-container',Container)
Vue.component('el-main',Main)
Vue.component('el-header',Header)
Vue.component('el-aside',Aside)
Vue.prototype.$alert = MessageBox.alert
Vue.prototype.$confirm = MessageBox.confirm
Vue.prototype.$message = Message

Vue.config.productionTip = false

new Vue({
  el:"#app",
  render: h => h(App),
  router
})
// AMap.initAMapApiLoader({
//   // 高德key
//   key: 'd80a7a92446ba0532e1e9db497471994',
//   // 插件集合 （插件按需引入）
//   plugin: ['AMap.Geolocation']
// });
